﻿using System;
using System.Windows.Forms;
using GiwinMonk.Settings;

namespace GiwinMonk.GUI
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            chkJab.Checked = MIRsettings.Instance.Jab;
            chkBlackoutKick.Checked = MIRsettings.Instance.BlackoutKick;
            chkChargingOxWave.Checked = MIRsettings.Instance.ChargingOxWave;
            chkChiBrew.Checked = MIRsettings.Instance.ChiBrew;
            chkChiBurst.Checked = MIRsettings.Instance.ChiBurst;
            chkChiWave.Checked = MIRsettings.Instance.ChiWave;
            chkCracklingJadeLightning.Checked = MIRsettings.Instance.CracklingJadeLightning;
            chkDampenHarm.Checked = MIRsettings.Instance.DampenHarm;
            chkDiffuseMagic.Checked = MIRsettings.Instance.DiffuseMagic;
            chkDetox.Checked = MIRsettings.Instance.Detox;
            chkDisable.Checked = MIRsettings.Instance.Disable;
            chkEnergizingBrew.Checked = MIRsettings.Instance.EnergizingBrew;
            chkExpelHarm.Checked = MIRsettings.Instance.ExpelHarm;
            chkFistsofFury.Checked = MIRsettings.Instance.FistsOfFury;
            chkFlyingSerpentKick.Checked = MIRsettings.Instance.FlyingSerpentKick;
            chkFortifyingBrew.Checked = MIRsettings.Instance.FortifyingBrew;
            chkGrappleWeapon.Checked = MIRsettings.Instance.GrappleWeapon;
            chkHealingSphere.Checked = MIRsettings.Instance.HealingSphere;
            chkInvokeXuen.Checked = MIRsettings.Instance.InvokeXuen;
            chkLegSweep.Checked = MIRsettings.Instance.LegSweep;
            chkLegacyoftheEmperor.Checked = MIRsettings.Instance.LegacyOfTheEmperor;
            chkLegacyoftheWhiteTiger.Checked = MIRsettings.Instance.LegacyOfTheWhiteTiger;
            chkParalysis.Checked = MIRsettings.Instance.Paralysis;
            chkRisingSunKick.Checked = MIRsettings.Instance.RisingSunKick;
            chkRoll.Checked = MIRsettings.Instance.Roll;
            chkRushingJadeWind.Checked = MIRsettings.Instance.RushingJadeWind;
            chkSpearHandStrike.Checked = MIRsettings.Instance.SpearHandStrike;
            chkSpinningCraneKick.Checked = MIRsettings.Instance.SpinningCraneKick;
            chkSpinningFireBlossom.Checked = MIRsettings.Instance.SpinningFireBlossom;
            chkTigerPalm.Checked = MIRsettings.Instance.TigerPalm;
            chkTigereyeBrew.Checked = MIRsettings.Instance.TigereyeBrew;
            chkTigersLust.Checked = MIRsettings.Instance.TigersLust;
            chkTouchofDeath.Checked = MIRsettings.Instance.TouchOfDeath;
            chkTouchofKarma.Checked = MIRsettings.Instance.TouchOfKarma;
            chkZenMeditation.Checked = MIRsettings.Instance.ZenMeditation;
            chkGeneral.Checked = MIRsettings.Instance.BaseRotation;
            chkPriority.Checked = MIRsettings.Instance.PriorityRotation;
            chkRingOfPeace.Checked = MIRsettings.Instance.RingOfPeace;
            chkStormEarthFire.Checked = MIRsettings.Instance.StormEarthFire;
            chkNimbleBrew.Checked = MIRsettings.Instance.NimbleBrew;
        }

        private void checkBox18_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Jab = chkJab.Checked;
        }

        private void chkTigerPalm_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.TigerPalm = chkTigerPalm.Checked;
        }

        private void chkBlackoutKick_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.BlackoutKick = chkBlackoutKick.Checked;
        }

        private void chkFistsofFury_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.FistsOfFury = chkFistsofFury.Checked;
        }

        private void chkCracklingJadeLightning_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.CracklingJadeLightning = chkCracklingJadeLightning.Checked;
        }

        private void chkDisable_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Disable = chkDisable.Checked;
        }

        private void chkGrappleWeapon_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.GrappleWeapon = chkGrappleWeapon.Checked;
        }


        private void chkRisingSunKick_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.RisingSunKick = chkRisingSunKick.Checked;
        }

        private void chkSpearHandStrike_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SpearHandStrike = chkSpearHandStrike.Checked;
        }

        private void chkParalysis_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Paralysis = chkParalysis.Checked;
        }

        private void chkSpinningCraneKick_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SpinningCraneKick = chkSpinningCraneKick.Checked;
        }

        private void chkSpinningFireBlossom_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SpinningFireBlossom = chkSpinningFireBlossom.Checked;
        }

        private void chkTouchofKarma_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.TouchOfKarma = chkTouchofKarma.Checked;
        }

        private void chkZenMeditation_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.ZenMeditation = chkZenMeditation.Checked;
        }

        private void chkRoll_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Roll = chkRoll.Checked;
        }

        private void chkFlyingSerpentKick_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.FlyingSerpentKick = chkFlyingSerpentKick.Checked;
        }

        private void chkHealingSphere_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.HealingSphere = chkHealingSphere.Checked;
        }

        private void chkExpelHarm_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.ExpelHarm = chkExpelHarm.Checked;
        }

        private void chkTigersLust_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.TigersLust = chkTigersLust.Checked;
        }

        private void chkChiBrew_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.ChiBrew = chkChiBrew.Checked;
        }

        private void chkEnergizingBrew_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.EnergizingBrew = chkEnergizingBrew.Checked;
        }

        private void chkFortifyingBrew_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.FortifyingBrew = chkFortifyingBrew.Checked;
        }

        private void chkTigereyeBrew_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.TigereyeBrew = chkTigereyeBrew.Checked;
        }

        private void chkLegacyoftheWhiteTiger_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.LegacyOfTheWhiteTiger = chkLegacyoftheWhiteTiger.Checked;
        }

        private void chkLegacyoftheEmperor_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.LegacyOfTheEmperor = chkLegacyoftheEmperor.Checked;
        }

        private void chkDetox_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Detox = chkDetox.Checked;
        }

        private void chkTouchofDeath_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.TouchOfDeath = chkTouchofDeath.Checked;
        }

        private void chkDampenHarm_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.DampenHarm = chkDampenHarm.Checked;
        }

        private void chkDiffuseMagic_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.DiffuseMagic = chkDiffuseMagic.Checked;
        }

        private void chkRushingJadeWind_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.RushingJadeWind = chkRushingJadeWind.Checked;
        }

        private void chkInvokeXuen_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.InvokeXuen = chkInvokeXuen.Checked;
        }

        private void chkChargingOxWave_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.ChargingOxWave = chkChargingOxWave.Checked;
        }

        private void chkLegSweep_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.LegSweep = chkLegSweep.Checked;
        }

        private void chkChiWave_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.ChiWave = chkChiWave.Checked;
        }

        private void chkChiBurst_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.ChiBurst = chkChiBurst.Checked;
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            MIRsettings.Instance.Save();
        }

        private void chkGeneral_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.BaseRotation = chkGeneral.Checked;
        }

        private void chkPriority_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.PriorityRotation = chkPriority.Checked;
        }

        private void chkNimbleBrew_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.NimbleBrew = chkNimbleBrew.Checked;
        }

        private void chkStormEarthFire_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.StormEarthFire = chkStormEarthFire.Checked;
        }

        private void chkRingOfPeace_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.RingOfPeace = chkRingOfPeace.Checked;
        }
    }
}
